home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / gnumake / gulmake.zoo / makegen < prev    next >
Text File  |  1990-10-13  |  4KB  |  110 lines

  1. # Makefile for GNU C compiler.
  2. #   Copyright (C) 1987 Free Software Foundation, Inc.
  3.  
  4. #This file is part of GNU CC.
  5.  
  6. #GNU CC is distributed in the hope that it will be useful,
  7. #but WITHOUT ANY WARRANTY.  No author or distributor
  8. #accepts responsibility to anyone for the consequences of using it
  9. #or for whether it serves any particular purpose or works at all,
  10. #unless he says so in writing.  Refer to the GNU CC General Public
  11. #License for full details.
  12.  
  13. #Everyone is granted permission to copy, modify and redistribute
  14. #GNU CC, but only under the conditions described in the
  15. #GNU CC General Public License.   A copy of this license is
  16. #supposed to have been given to you along with GNU CC so you
  17. #can know your rights and responsibilities.  It should be in a
  18. #file named COPYING.  Among other things, the copyright notice
  19. #and this notice must be preserved on all copies.
  20.  
  21. #------------------------------------------------
  22. # Run this file in gulam first: 'make -f makegen'
  23. #------------------------------------------------
  24.  
  25. CROSSINC = d:\gnu\include
  26. CFLAGS = -O -I$(CROSSINC) -I.\config -I. -Datarist
  27. CC = d:\gnu\bin\gcc
  28.  
  29. bindir = 
  30. libdir = 
  31.  
  32. OBSTACK=obstack.o
  33.  
  34. # Dependency on obstack, alloca, malloc or whatever library facilities
  35. # are not installed in the system libraries.
  36. LIBDEPS= $(OBSTACK) 
  37.  
  38. # How to link with both our special library facilities
  39. # and the system's installed libraries.
  40. LIBS = $(OBSTACK) 
  41.  
  42. LDFLAGS =
  43.  
  44. DIR = ../gcc
  45.  
  46. # Header files that are made available to programs compiled with gcc.
  47. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  48.  
  49. CONFIG_H =
  50. RTL_H = rtl.h rtl.def machmode.def
  51. TREE_H = tree.h tree.def machmode.def
  52.  
  53. all:   obstack.o rtl.o genconfi.ttp genflags.ttp gencodes.ttp genemit.ttp \
  54.    genrecog.ttp genextra.ttp genpeep.ttp genoutpu.ttp
  55.  
  56. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  57.  
  58. obstack.o : obstack.c
  59.  
  60. # The programs that generate the machine description files.
  61.  
  62. genconfi.ttp : genconfi.o rtl.o $(LIBDEPS)
  63.     $(CC) $(CFLAGS) $(LDFLAGS) -o genconfi.ttp genconfi.o rtl.o $(LIBS)
  64.  
  65. genconfi.o : genconfi.c $(RTL_H)
  66.     $(CC) $(CFLAGS) -c genconfi.c -o genconfi.o
  67.  
  68. genflags.ttp : genflags.o rtl.o $(LIBDEPS)
  69.     $(CC) $(CFLAGS) $(LDFLAGS) -o genflags.ttp genflags.o rtl.o $(LIBS)
  70.  
  71. genflags.o : genflags.c $(RTL_H)
  72.     $(CC) $(CFLAGS) -c genflags.c -o genflags.o
  73.  
  74. gencodes.ttp : gencodes.o rtl.o $(LIBDEPS)
  75.     $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes.ttp gencodes.o rtl.o $(LIBS)
  76.  
  77. gencodes.o : gencodes.c $(RTL_H)
  78.     $(CC) $(CFLAGS) -c gencodes.c -o gencodes.o
  79.  
  80. genemit.ttp : genemit.o rtl.o $(LIBDEPS)
  81.     $(CC) $(CFLAGS) $(LDFLAGS) -o genemit.ttp genemit.o rtl.o $(LIBS)
  82.  
  83. genemit.o : genemit.c $(RTL_H)
  84.     $(CC) $(CFLAGS) -c genemit.c -o genemit.o
  85.  
  86. genrecog.ttp : genrecog.o rtl.o $(LIBDEPS)
  87.     $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog.ttp genrecog.o rtl.o $(LIBS)
  88.  
  89. genrecog.o : genrecog.c $(RTL_H)
  90.     $(CC) $(CFLAGS) -c genrecog.c -o genrecog.o
  91.  
  92. genextra.ttp : genextra.o rtl.o $(LIBDEPS)
  93.     $(CC) $(CFLAGS) $(LDFLAGS) -o genextra.ttp genextra.o rtl.o $(LIBS)
  94.  
  95. genextra.o : genextra.c $(RTL_H)
  96.     $(CC) $(CFLAGS) -c genextra.c -o genextra.o
  97.  
  98. genpeep.ttp : genpeep.o rtl.o $(LIBDEPS)
  99.     $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep.ttp genpeep.o rtl.o $(LIBS)
  100.  
  101. genpeep.o : genpeep.c $(RTL_H)
  102.     $(CC) $(CFLAGS) -c genpeep.c -o genpeep.o
  103.  
  104. genoutpu.ttp : genoutpu.o rtl.o $(LIBDEPS)
  105.     $(CC) $(CFLAGS) $(LDFLAGS) -o genoutpu.ttp genoutpu.o rtl.o $(LIBS)
  106.  
  107. genoutpu.o : genoutpu.c $(RTL_H)
  108.     $(CC) $(CFLAGS) -c genoutpu.c -o genoutpu.o
  109.  
  110.